import request from '@/utils/request'

// 查询线路场区列表
export function listRouteRegion(query) {
  return request({
    url: '/basic/routeRegion/list',
    method: 'get',
    params: query
  })
}

// 查询线路场区详细
export function getRouteRegion(id) {
  return request({
    url: '/basic/routeRegion/' + id,
    method: 'get'
  })
}

// 新增线路场区
export function addRouteRegion(data) {
  return request({
    url: '/basic/routeRegion',
    method: 'post',
    data: data
  })
}

// 修改线路场区
export function updateRouteRegion(data) {
  return request({
    url: '/basic/routeRegion',
    method: 'put',
    data: data
  })
}

// 删除线路场区
export function delRouteRegion(id) {
  return request({
    url: '/basic/routeRegion/' + id,
    method: 'delete'
  })
}
